<template>
  <div class="selectShare">
    <nav-bar class="navBar">
        <div class="cancel" slot="left" @click="Cancel"><img src="@/assets/img/publish/cancel.svg" alt=""></div>
        <div slot="center">请选择</div>
        <div class="next" slot="right" @click="Next"><button>下一步</button></div>
    </nav-bar>
    <div class="selectPictrue">
        <router-link to="/selectShare/locatedPicture" replace class="localtion">本地照片</router-link>
        <router-link to="/selectShare/tourRoute" replace class="tourRoute">旅游路线</router-link>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
import NavBar from '@/components/common/navbar/NavBar.vue'
export default {
    name: 'SelectShare',
    components: { NavBar },
    methods: {
        Cancel() {
            this.$router.back()
        },
        Next() {
            this.$router.push({
                path: '/editPublish'
            })
        }
    },
}
</script>

<style scoped>
.selectShare {
    height: 100vh;
    z-index: 9;
    background-color: #131212e7;
}
/* 导航栏样式 */
.navBar {
    color: #fff;
    border-bottom: 1px solid #ebeaea;
}
/* 取消按钮样式 */
.cancel {
    text-align: left;
}
.cancel img {
    height: 30px;
    margin: 5px;
}

/* 下一步按钮样式 */
.next {
    color: #ebeaea;
}
.next button {
    color: #fff;
    background-color: #ebeaeacc;
    padding: 5px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}
/* 设置照片选择区域样式 */
.selectPictrue {
    color: #fff;
    display: flex;
    text-align: center;
    padding: 5px;
}
/* 图片、旅游路线样式 */
.localtion {
    flex: 1;
}
.tourRoute {
    flex: 1;
}
/* 图片、旅游路线活跃状态样式 */
.active {
    color: #fff;
    position: relative;
}
/* .active::after {
    position: absolute;
    width: 100%;
    height: 1px;
    border: 1px solid #fff;
} */
</style>